{include 'header.tpl'}
<ol class="breadcrumb">
    <li>用户组列表</li>
</ol>
<form method="get" action="/adminmall/manager/group" class="form-inline">
    <table width="100%">
        <tr>
            <td>
                <label for="form-w" class="control-label">搜索关键字：</label>
                <input class="form-control" name="keyword" value="{$smarty.get.keyword}" size="30" placeholder="输入ID或名称进行查找"/>
                <button type="submit" class="btn btn-primary">查找</button>
                <form rel="ajax" method="post" action="#" class="form-horizontal" role="form">
                    <button type="button" class="btn" href="/adminmall/manager/groupmodify" rel="ajax">添加用户组</button>
                </form>
            </td>
        </tr>
    </table>
</form>
<div class="clearfix" style="height:30px;"></div>
<table class="table" style="table-layout: fixed;WORD-BREAK: break-all; WORD-WRAP: break-word">
    <thead>
        <tr>
            <th width="40">组ID</th>
            <th class="left">名称</th>
            <th width="120">操作</th>
        </tr>
    </thead>
    <tbody>
    {foreach from=$groupList item=item}
        <tr>
            <td>{$item.id}</td>
            <td class="left">{$item.title}</td>
            <td>
                <a href="/adminmall/manager/groupmodify?id={$item.id}" rel="ajax">编辑</a>&nbsp;&nbsp;
                <a href="javascript:void(0);" rel="confirm" data-href="/adminmall/manager/groupdelete?id={$item.id}" data-text="确定要删除这个用户组吗？" class="btn-delete">删除</a>
            </td>
        </tr>
    {/foreach}
</table>
{include "pager.tpl"}
{include 'footer.tpl'}